const nodePolyfills = require("node-polyfill-webpack-plugin");

module.exports = function override(config, env) {
  // 添加 nodePolyfills 插件
  config.plugins.push(new nodePolyfills());
  config.resolve.fallback = {
    fs: false,
    // buffer: require.resolve("buffer"),
  };

  return config;
};
